package ouyangye;

public class circle extends shape {
    private double r;

    public circle(String name,double r){
        super(name);
        this.r=r;
    }

    @Override
    public double Area() {
        return 3.14*r*r;
    }

    @Override
    public  double Long(){
        return 2*3.14*r;
    }

    public double getR() {
        return r;
    }
    public void setR(double r) {
        this.r = r;
    }
}
